<?php 
final class KUAIXUEPHP{

	public static function run(){
		self::_set_const();
		// self::_create_dir();
		// self::_import_file();
		// Application::run();
	}

	private static function _set_const(){
		// /www/KUAIXUEAPP/KUAIXUEPHP/KUAIXUEPHP.php
		// var_dump(__FILE__);
		$path = str_replace('\\', '/', __FILE__);
		// /www/KUAIXUEAPP/KUAIXUEPHP
		define('KUAIXUEPHP_PATH', dirname($path));
		// /www/KUAIXUEAPP
		define('ROOT_PATH', dirname(KUAIXUEPHP_PATH));
		define('CONFIG_PATH', KUAIXUEPHP_PATH . '/Config');
		define('DATA_PATH', KUAIXUEPHP_PATH . '/Data');
		define('LIB_PATH', KUAIXUEPHP_PATH . '/Lib');
		define('CORE_PATH', LIB_PATH . '/Core');
		define('FUNCTION_PATH', LIB_PATH . '/Function');

		// /www/KUAIXUEAPP/Index
		// /www/KUAIXUEAPP/Admin
		define('APP_PATH', ROOT_PATH . '/' . APP_NAME);
		// /www/KUAIXUEAPP/Admin/Control
		define('APP_CONTROL_PATH', APP_PATH . '/Control');
		define('APP_CONFIG_PATH', APP_PATH . '/Config');
		define('APP_TPL_PATH', APP_PATH . '/Tpl');
		define('APP_PUBLIC_PATH', APP_TPL_PATH . '/Public');
	}

}


KUAIXUEPHP::run();


 ?>